package org.whb.pet.service;


import org.whb.basic.service.IBaseService;
import org.whb.basic.util.PageList;
import org.whb.pet.domain.Pet;
import org.whb.pet.domain.SearchMasterMsg;
import org.whb.pet.query.SearchMasterMsgQuery;
import org.whb.user.domain.Logininfo;

import javax.servlet.http.HttpServletRequest;

public interface ISearchMasterMsgService extends IBaseService<SearchMasterMsg> {
    /**
     * 发布寻主信息
      * @param searchMasterMsg
     * @param logininfo
     */
    void publish(SearchMasterMsg searchMasterMsg, Logininfo logininfo);

    /**
     * 待处理寻主信息
     * @param query
     * @param logininfo
     * @return
     */
    PageList<SearchMasterMsg> pending(SearchMasterMsgQuery query, Logininfo logininfo);

    /**
     * 已处理寻主信息
     * @param query
     * @param logininfo
     * @return
     */
    PageList<SearchMasterMsg> processed(SearchMasterMsgQuery query, Logininfo logininfo);

    /**
     * 处理寻主消息
     * @param pet
     * @param logininfo
     */
    void handle(Pet pet, Logininfo logininfo);
}
